package com.sh.data.engine.velocity.model.iotdb;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Data
@ToString
public class IotDataModel {
    // json字符串
    private String json;
    // 存储组名称
    private String storageGroup;
    // 设备名称
    private String deviceId;
    // 时间戳
    private long timestamp;

    private boolean invalid;

    private List<MeasurementModel> measurements;

    @Data
    @EqualsAndHashCode(
        callSuper = false,
        exclude = {"value"})
    public static class MeasurementModel {
        // 测点名称
        private String name;
        // 测点数
        private Object value;
    }
}
